package com.example.mobile2032021606130zlw0309;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import javax.security.auth.login.LoginException;

public class MainActivity extends AppCompatActivity {
    Button LOL;
    Button cf;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         LOL=findViewById(R.id.xyr);
         cf=findViewById(R.id.tui_chu);
        LOL.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(MainActivity.this,"LOL得买西亚",Toast.LENGTH_SHORT).show();
                LOL.setText("更改");
            }
        });
        cf.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(MainActivity.this,"LOL得买西亚",Toast.LENGTH_SHORT).show();
                cf.setText("更改");
            }
        });
        //匿名内部类
    }

}